package com.study.ui.test

import android.graphics.Color
import com.lbj.core.app.CoreVM
import com.study.ui.test.test_basequick.TestBaseQuickActivity
import com.study.ui.test.test_download.TestDownloadActivity
import com.study.ui.test.test_listadapter.TestListAdapterActivity

/**
 * 作者：李炳军
 * 创建日期：2021-03-31  10:57
 * 释义：
 */
class TestVM : CoreVM() {
    fun getTestBeanList(): MutableList<TestBean> {
        val list = mutableListOf<TestBean>()
        list.add(
            TestBean(
                1,
                "ListAdapter",
                Color.parseColor("#32CD32"),
                TestListAdapterActivity::class.java
            )
        )
        list.add(
            TestBean(
                2,
                "BaseQuickAdapter",
                Color.parseColor("#C577CB"),
                TestBaseQuickActivity::class.java
            )
        )
        list.add(TestBean(3, "BaseMultiItemQuickAdapter", Color.parseColor("#FF8C00")))
        list.add(TestBean(4, "ListAdapter扩展", Color.parseColor("#23A21B")))
        list.add(TestBean(5, "BaseQuickAdapter扩展", Color.parseColor("#166AC9")))
        list.add(TestBean(6, "BaseMultiItemQuickAdapter扩展", Color.parseColor("#BD16C9")))
        list.add(
            TestBean(
                7,
                "自动更新",
                Color.parseColor("#5F9EA0"),
                TestDownloadActivity::class.java
            )
        )
        return list
    }
}